package com.wyf.springmvc.po;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

@Data
public class User {
    private Integer userId;
    private String userName;
    private String userPwd;
    private String userEmail;

    private Set<Phone> set = new HashSet<Phone>();

    public User() {
        set.add(new Phone());
        set.add(new Phone());
        set.add(new Phone());
    }
}

@Data
@NoArgsConstructor
class Phone {
    private int num;
}